Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 471bf62bd6f7585a7294590a366072d4f4481f4c


Parents : 69fcb48
Author : Sudo-Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-02-23T19:42:53-06:00

cleanup backend (format)

Changes

2 files changed, 26 insertions(+), 28 deletions(-)


Diff

diff --git a/meshchatx/src/backend/identity_context.py b/meshchatx/src/backend/identity_context.py
index 58c2c077..a00e6cf3 100644
--- a/meshchatx/src/backend/identity_context.py
+++ b/meshchatx/src/backend/identity_context.py
@@ -267,8 +267,8 @@ class IdentityContext:
self.telephone_manager.get_name_for_identity_hash = (
self.app.get_name_for_identity_hash
)
- self.telephone_manager.on_initiation_status_callback = (
- lambda status, target: self.app.on_telephone_initiation_status(
+ self.telephone_manager.on_initiation_status_callback = lambda status, target: (
+ self.app.on_telephone_initiation_status(
status,
target,
context=self,
@@ -297,8 +297,8 @@ class IdentityContext:
self.voicemail_manager.get_name_for_identity_hash = (
self.app.get_name_for_identity_hash
)
- self.voicemail_manager.on_new_voicemail_callback = (
- lambda vm: self.app.on_new_voicemail_received(vm, context=self)
+ self.voicemail_manager.on_new_voicemail_callback = lambda vm: (
+ self.app.on_new_voicemail_received(vm, context=self)
)
self.ringtone_manager = RingtoneManager(
@@ -415,32 +415,28 @@ class IdentityContext:
),
AnnounceHandler(
"lxmf.propagation",
- lambda aspect,
- dh,
- ai,
- ad,
- aph: self.app.on_lxmf_propagation_announce_received(
- aspect,
- dh,
- ai,
- ad,
- aph,
- context=self,
+ lambda aspect, dh, ai, ad, aph: (
+ self.app.on_lxmf_propagation_announce_received(
+ aspect,
+ dh,
+ ai,
+ ad,
+ aph,
+ context=self,
+ )
),
),
AnnounceHandler(
"nomadnetwork.node",
- lambda aspect,
- dh,
- ai,
- ad,
- aph: self.app.on_nomadnet_node_announce_received(
- aspect,
- dh,
- ai,
- ad,
- aph,
- context=self,
+ lambda aspect, dh, ai, ad, aph: (
+ self.app.on_nomadnet_node_announce_received(
+ aspect,
+ dh,
+ ai,
+ ad,
+ aph,
+ context=self,
+ )
),
),
]

diff --git a/meshchatx/src/backend/rnstatus_handler.py b/meshchatx/src/backend/rnstatus_handler.py
index 716b546b..82c8d6b0 100644
--- a/meshchatx/src/backend/rnstatus_handler.py
+++ b/meshchatx/src/backend/rnstatus_handler.py
@@ -103,8 +103,10 @@ class RNStatusHandler:
)
elif sorting in ("announces", "announce"):
interfaces.sort(
- key=lambda i: (i.get("incoming_announce_frequency", 0) or 0)
- + (i.get("outgoing_announce_frequency", 0) or 0),
+ key=lambda i: (
+ (i.get("incoming_announce_frequency", 0) or 0)
+ + (i.get("outgoing_announce_frequency", 0) or 0)
+ ),
reverse=sort_reverse,
)
elif sorting == "arx":


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────